package com.matt.domain.mp;
import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/11/27
 * *******************************
 */
@Table(name = "wx_user")
@Data
@Entity
@EqualsAndHashCode(callSuper = false)
public class WxUser extends Model{

    @Column(columnDefinition = "varchar(255) COMMENT '城市'")
    private String city = "";

    @Column(columnDefinition = "varchar(255)  COMMENT '国家'")
    private String country = "";

    @Column(columnDefinition = "varchar(255)  COMMENT '用户微信头像'")
    private String head_img_url = "";

    @Column(columnDefinition = "varchar(255)  COMMENT '语言'")
    private String language = "";

    @Column(columnDefinition = "varchar(255)  COMMENT '昵称'")
    private String nickname;

    @Column(columnDefinition = "varchar(255)  COMMENT 'openId'")
    private String openid;

    @Column(columnDefinition = "varchar(255)  COMMENT 'openId'")
    private String openid_wp;

    @Column(columnDefinition = "varchar(255)  COMMENT '省份'")
    private String province;

    @Column(columnDefinition = "varchar(255)  COMMENT ''")
    private String session_key;

    @Column(columnDefinition = "int COMMENT '性别 1：男 2：女'")
    private Integer sex;

    @Column(columnDefinition = "varchar(255) COMMENT '性别描述'")
    private String sex_desc;

    @Column(columnDefinition = "varchar(255) COMMENT ''")
    private String unionid;

    @Column(name="default_baby" ,columnDefinition = "varchar(255) COMMENT '绑定的孩子ID'")
    private String defaultBaby;


    @Column(columnDefinition = "varchar(255) COMMENT '家长手机'")
    private String parent_mobile;

    @Column(columnDefinition = "int COMMENT '性别 1：男 2：女'")
    private Integer subscribe;

    @Column(columnDefinition = "int COMMENT '性别 1：男 2：女'")
    private Integer subscribe_time;




}
